
function idck(){
	var idnum = document.getElementById("id");
	var idmsg = document.getElementById("idmsg1");
	if(idnum.value.length==0){
		document.all("idmsg1").innerHTML="ID please!";
		idmsg.style.color="red";
		idmsg.style.visibility='visible';
	}else{
		if(idnum.value.length<3||idnum.value.length>13){
			document.all("idmsg1").innerHTML="Please put 3~11 words.";
			idmsg.style.color="red";
			idmsg.style.visibility='visible';
			idnum.select();
		}else{
			document.all("idmsg1").innerHTML="Good!";
			idmsg.style.color="#7c469c";
			idmsg.style.visibility='visible';
		}
	}
}


function mck(){
	var mnum = document.getElementById("mail");
	var idmsg = document.getElementById("idmsg2");
	if(mnum.value.length==0){
		document.all("idmsg2").innerHTML="E-Mail please!";
		idmsg.style.color="red";
		idmsg.style.visibility='visible';
	}else{
		if(mnum.value.indexOf(".")==-1){
			document.all("idmsg2").innerHTML="Please put words correctly.";
			idmsg.style.color="red";
			idmsg.style.visibility='visible';
			mnum.select();
		}else{
			document.all("idmsg2").innerHTML="Good!";
			idmsg.style.color="#7c469c";
			idmsg.style.visibility='visible';
		}
	}
}

function emagmtck(){
	if(document.getElementById("emagmt").checked){		
		document.all("econfirm").innerHTML="(You will get our E-Mail.)";
		pwmsg.style.color="white";
		pwmsg.style.visibility='visible';
	}else{
		document.all("econfirm").innerHTML="(You will not get our E-Mail.)";
		pwmsg.style.color="white";
		pwmsg.style.visibility='visible';
	}
}

function ckpw(){
	var pwck=document.getElementById("pw");
	var pwmsg = document.getElementById("pwmsg1");
	if(pwck.value.length==0){
		document.all("pwmsg1").innerHTML="Password please!";
		pwmsg.style.color="red";
		pwmsg.style.visibility='visible';
	}else{
		if(pwck.value.length<6||pwck.value.length>12){
			document.all("pwmsg1").innerHTML="Please put 6~12 words.";
			pwmsg.style.color="red";
			pwmsg.style.visibility='visible';
			pwck.select();
		}else{
			document.all("pwmsg1").innerHTML="Good!";
			pwmsg.style.color="#7c469c";
			pwmsg.style.visibility='visible';
		}
	}
}

function ckpwck(){
	var pwck=document.getElementById("pw");
	var pwckck=document.getElementById("pwck");
	var pwmsg = document.getElementById("pwmsg2");
	if(pwck.value==0){
		document.all("pwmsg2").innerHTML="Password check please.";
		pwmsg.style.color="red";
		pwmsg.style.visibility='visible';
	}else{
		if(pwck.value!=pwckck.value){
			document.all("pwmsg2").innerHTML="Password not matched";
			pwmsg.style.color="red";
			pwmsg.style.visibility='visible';
		}else{
			document.all("pwmsg2").innerHTML="Good!";
			pwmsg.style.color="#7c469c";
			pwmsg.style.visibility='visible';
		}
	}	
}


function ckevent(){
	var ck=document.getElementById("ck");
	var mail = document.getElementById("mail");
	var id= document.getElementById("id");
	
	if(ck.value!="�����Է�"){
		if(id.value!=''){
			mail.value=ck.value;
			mail.focus();
		}else{
			mail.value=ck.value;
			id.focus();
		}
	}else{
		mail.value=ck.value;
		mail.focus();
	}
	
}

function show(){
	document.getElementById("zmsg").style.display="block";
		
}

function showoff(){
	document.getElementById("zmsg").style.display="none";
		
}


function triple1view(){
	document.getElementById("triple1").style.backgroundColor="white";
	document.getElementById("triple2").style.backgroundColor="#dcdcdc";
	document.getElementById("triple3").style.backgroundColor="#dcdcdc";
	document.getElementById("txt2").style.display="block";
	document.getElementById("txt3").style.display="none";
	document.getElementById("txt4").style.display="none";
	
}

function triple2view(){
	document.getElementById("triple1").style.backgroundColor="#dcdcdc";
	document.getElementById("triple2").style.backgroundColor="white";
	document.getElementById("triple3").style.backgroundColor="#dcdcdc";
	document.getElementById("txt2").style.display="none";
	document.getElementById("txt3").style.display="block";
	document.getElementById("txt4").style.display="none";
}

function triple3view(){
	document.getElementById("triple1").style.backgroundColor="#dcdcdc";
	document.getElementById("triple2").style.backgroundColor="#dcdcdc";
	document.getElementById("triple3").style.backgroundColor="white";
	document.getElementById("txt2").style.display="none";
	document.getElementById("txt3").style.display="none";
	document.getElementById("txt4").style.display="block";
}

function finalbtn(){
	var check= false;
	/*if(document.getElementById("idmsg1").innerHTML!="Good!"){
		document.getElementById("id").focus();
	}else if(document.getElementById("idmsg2").innerHTML!="Good!"){
		document.getElementById("mail").focus();
	}else if(document.getElementById("pwmsg1").innerHTML!="Good!"){
		document.getElementById("pw").focus();
	}else if(document.getElementById("pwmsg2").innerHTML!="Good!"){
		document.getElementById("pwck").focus();
	}else if(!document.getElementById("agmt1").checked&&!document.getElementById("agmt2").checked){
		document.all("joinagmt3").innerHTML="You must check the agreement.";
		document.all("joinagmt3").style.color="red";
		document.all("joinagmt3").style.visibility='visible';
	}else if(!document.getElementById("agmt1").checked||!document.getElementById("agmt2").checked){
		document.all("joinagmt3").innerHTML="You must check the two agreements above.";
		document.all("joinagmt3").style.visibility='visible';
	}else{*/
		check=true;
	//}
	if(check==true){
		document.join.submit();
	}
}

function login(){
	document.join.submit();
}
